<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: src/mqtt/iclient_persistence.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('iclient__persistence_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">iclient_persistence.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="iclient__persistence_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/*******************************************************************************</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Copyright (c) 2013-2016 Frank Pagliughi &lt;fpagliughi@mindspring.com&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * All rights reserved. This program and the accompanying materials</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * are made available under the terms of the Eclipse Public License v1.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * and Eclipse Distribution License v1.0 which accompany this distribution.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * The Eclipse Public License is available at</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    http://www.eclipse.org/legal/epl-v10.html</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * and the Eclipse Distribution License is available at</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *   http://www.eclipse.org/org/documents/edl-v10.php.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * Contributors:</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    Frank Pagliughi - initial implementation and documentation</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef __mqtt_iclient_persistence_h</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __mqtt_iclient_persistence_h</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;MQTTAsync.h&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">mqtt/types.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="buffer__view_8h.html">mqtt/buffer_view.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="string__collection_8h.html">mqtt/string_collection.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span>mqtt {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classmqtt_1_1iclient__persistence.html">   54</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmqtt_1_1iclient__persistence.html">iclient_persistence</a></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classmqtt_1_1async__client.html">async_client</a>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>iclient_persistence_test;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_open(<span class="keywordtype">void</span>** handle, <span class="keyword">const</span> <span class="keywordtype">char</span>* clientID, <span class="keyword">const</span> <span class="keywordtype">char</span>* serverURI, <span class="keywordtype">void</span>* context);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_close(<span class="keywordtype">void</span>* handle);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_put(<span class="keywordtype">void</span>* handle, <span class="keywordtype">char</span>* key, <span class="keywordtype">int</span> bufcount, <span class="keywordtype">char</span>* buffers[], <span class="keywordtype">int</span> buflens[]);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_get(<span class="keywordtype">void</span>* handle, <span class="keywordtype">char</span>* key, <span class="keywordtype">char</span>** buffer, <span class="keywordtype">int</span>* buflen);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_remove(<span class="keywordtype">void</span>* handle, <span class="keywordtype">char</span>* key);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_keys(<span class="keywordtype">void</span>* handle, <span class="keywordtype">char</span>*** <a class="code" href="classmqtt_1_1iclient__persistence.html#aa4c6614822e259d13374f2ee251aa07e">keys</a>, <span class="keywordtype">int</span>* nkeys);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_clear(<span class="keywordtype">void</span>* handle);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> persistence_containskey(<span class="keywordtype">void</span>* handle, <span class="keywordtype">char</span>* key);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classmqtt_1_1iclient__persistence.html#a8d4b4f2aeec08433f824fda2a0fc13fe">   71</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#a8d4b4f2aeec08433f824fda2a0fc13fe">ptr_t</a> = std::shared_ptr&lt;iclient_persistence&gt;;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmqtt_1_1iclient__persistence.html#a4d94ac43f630b23389f6936e74452d1d">   73</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#a4d94ac43f630b23389f6936e74452d1d">const_ptr_t</a> = std::shared_ptr&lt;const iclient_persistence&gt;;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classmqtt_1_1iclient__persistence.html#aaf9a10b4dc43863f8d62f708e3f8571b">   78</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#aaf9a10b4dc43863f8d62f708e3f8571b">~iclient_persistence</a>() {}</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#a0072b4a4cadc6e16faa53d2b45e7e612">open</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; clientId, <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; serverURI) =0;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#a4777bfc318f827d2535ae5e47b1909a5">close</a>() =0;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#adb6ad819aea04897b69e411dd1cb5fc7">clear</a>() =0;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#a7e216ed0702a4fbad689f5896881cd18">contains_key</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; key) =0;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classmqtt_1_1string__collection.html">string_collection</a>&amp; <a class="code" href="classmqtt_1_1iclient__persistence.html#aa4c6614822e259d13374f2ee251aa07e">keys</a>() <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1iclient__persistence.html#a911ee78fdc1c0b93d66b8529274449fa">put</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; key, <span class="keyword">const</span> std::vector&lt;string_view&gt;&amp; bufs) =0;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmqtt_1_1buffer__view.html">string_view</a> <span class="keyword">get</span>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; key) <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <span class="keyword">remove</span>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; key) =0;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;};</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keyword">using</span> iclient_persistence_ptr = <a class="code" href="classmqtt_1_1iclient__persistence.html#a8d4b4f2aeec08433f824fda2a0fc13fe">iclient_persistence::ptr_t</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="keyword">using</span> const_iclient_persistence_ptr = <a class="code" href="classmqtt_1_1iclient__persistence.html#a4d94ac43f630b23389f6936e74452d1d">iclient_persistence::const_ptr_t</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">// end namespace mqtt</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif      // __mqtt_iclient_persistence_h</span></div>
<div class="ttc" id="classmqtt_1_1async__client_html"><div class="ttname"><a href="classmqtt_1_1async__client.html">mqtt::async_client</a></div><div class="ttdoc">Lightweight client for talking to an MQTT server using non-blocking methods that allow an operation t...</div><div class="ttdef"><b>Definition:</b> async_client.h:60</div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html">mqtt::iclient_persistence</a></div><div class="ttdoc">Represents a persistent data store, used to store outbound and inbound messages while they are in fli...</div><div class="ttdef"><b>Definition:</b> iclient_persistence.h:54</div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_aaf9a10b4dc43863f8d62f708e3f8571b"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#aaf9a10b4dc43863f8d62f708e3f8571b">mqtt::iclient_persistence::~iclient_persistence</a></div><div class="ttdeci">virtual ~iclient_persistence()</div><div class="ttdoc">Virtual destructor. </div><div class="ttdef"><b>Definition:</b> iclient_persistence.h:78</div></div>
<div class="ttc" id="types_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div><div class="ttdoc">Basic types and type conversions for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_a4d94ac43f630b23389f6936e74452d1d"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#a4d94ac43f630b23389f6936e74452d1d">mqtt::iclient_persistence::const_ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; const iclient_persistence &gt; const_ptr_t</div><div class="ttdoc">Smart/shared pointer to a const object of this class. </div><div class="ttdef"><b>Definition:</b> iclient_persistence.h:73</div></div>
<div class="ttc" id="buffer__view_8h_html"><div class="ttname"><a href="buffer__view_8h.html">buffer_view.h</a></div><div class="ttdoc">Buffer reference type for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="string__collection_8h_html"><div class="ttname"><a href="string__collection_8h.html">string_collection.h</a></div><div class="ttdoc">Definition of the string_collection class for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_a8d4b4f2aeec08433f824fda2a0fc13fe"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#a8d4b4f2aeec08433f824fda2a0fc13fe">mqtt::iclient_persistence::ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; iclient_persistence &gt; ptr_t</div><div class="ttdoc">Smart/shared pointer to an object of this class. </div><div class="ttdef"><b>Definition:</b> iclient_persistence.h:71</div></div>
<div class="ttc" id="classmqtt_1_1string__collection_html"><div class="ttname"><a href="classmqtt_1_1string__collection.html">mqtt::string_collection</a></div><div class="ttdoc">Type for a collection of topics. </div><div class="ttdef"><b>Definition:</b> string_collection.h:40</div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_a0072b4a4cadc6e16faa53d2b45e7e612"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#a0072b4a4cadc6e16faa53d2b45e7e612">mqtt::iclient_persistence::open</a></div><div class="ttdeci">virtual void open(const string &amp;clientId, const string &amp;serverURI)=0</div><div class="ttdoc">Initialize the persistent store. </div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_adb6ad819aea04897b69e411dd1cb5fc7"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#adb6ad819aea04897b69e411dd1cb5fc7">mqtt::iclient_persistence::clear</a></div><div class="ttdeci">virtual void clear()=0</div><div class="ttdoc">Clears persistence, so that it no longer contains any persisted data. </div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_a911ee78fdc1c0b93d66b8529274449fa"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#a911ee78fdc1c0b93d66b8529274449fa">mqtt::iclient_persistence::put</a></div><div class="ttdeci">virtual void put(const string &amp;key, const std::vector&lt; string_view &gt; &amp;bufs)=0</div><div class="ttdoc">Puts the specified data into the persistent store. </div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_a4777bfc318f827d2535ae5e47b1909a5"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#a4777bfc318f827d2535ae5e47b1909a5">mqtt::iclient_persistence::close</a></div><div class="ttdeci">virtual void close()=0</div><div class="ttdoc">Close the persistent store that was previously opened. </div></div>
<div class="ttc" id="classmqtt_1_1buffer__view_html"><div class="ttname"><a href="classmqtt_1_1buffer__view.html">mqtt::buffer_view</a></div><div class="ttdoc">A reference to a contiguous sequence of items, with no ownership. </div><div class="ttdef"><b>Definition:</b> buffer_view.h:40</div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_a7e216ed0702a4fbad689f5896881cd18"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#a7e216ed0702a4fbad689f5896881cd18">mqtt::iclient_persistence::contains_key</a></div><div class="ttdeci">virtual bool contains_key(const string &amp;key)=0</div><div class="ttdoc">Returns whether or not data is persisted using the specified key. </div></div>
<div class="ttc" id="classmqtt_1_1iclient__persistence_html_aa4c6614822e259d13374f2ee251aa07e"><div class="ttname"><a href="classmqtt_1_1iclient__persistence.html#aa4c6614822e259d13374f2ee251aa07e">mqtt::iclient_persistence::keys</a></div><div class="ttdeci">virtual const string_collection &amp; keys() const =0</div><div class="ttdoc">Returns a collection of keys in this persistent data store. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_503ebd9f384f44c9859dcb1451d026bc.html">mqtt</a></li><li class="navelem"><a class="el" href="iclient__persistence_8h.html">iclient_persistence.h</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
